public class Shuzu03
{
public static void main(String[] args)
{
int i,j;
int[][] a=new int[8][];
for(i=0;i<8;i++)
{
a[i]=new int[i+1];
a[i][0]=1;
}
for(i=1;i<8;i++)
{
for(j=1;j<a[i].length-1;j++)
{
a[i][j]= a[i-1][j-1]+a[i-1][j];
}
a[i][a[i].length-1]=1;
}
for(int[] b:a)
{
for(int c:b)
{
System.out.print(c+"\t");
}
System.out.println();
}
}
}